package com.mxf.code.cases.order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * message_record
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageRecord implements Serializable {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 业务数据ID
     */
    private String businessId;

    /**
     * 业务类型：具体业务
     */
    private Byte businessType;

    /**
     * 消息ID
     */
    private String messageId;

    /**
     * 重试次数
     */
    private Byte retriesNumber;

    /**
     * 结果 1 成功  0 失败
     */
    private Byte status;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public MessageRecord(String id, int i) {
        this.businessId = id;
        this.messageId = String.valueOf(i);
        this.createTime = new Date();
    }
}